let arr = [1,2,3,1,3,1,3]
//reduce + includes
function unique(arr){
    let uniqueArr = arr.reduce((uniqueArr,item) => uniqueArr.includes(item) ? uniqueArr : [...uniqueArr,item],[])
    console.log(uniqueArr);
}
unique(arr)